<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<!--xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4"-->
<head >
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title th:inline="text">OAuth2 Client</title>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    Hello, <span sec:authentication="name">Username</span>
    <form th:action="@{/logout}" method="post" role="form" sec:authorize="authenticated">
        <button class="btn btn-default btn-flat" type="submit">Sign out</button>
    </form>
</div>

<!-- jQuery 2.2.3 -->
<script src="https://cdn.bootcss.com/jquery/2.2.3/jquery.min.js" th:src="@{/webjars/jquery/jquery.min.js}"></script>

<script type="text/javascript">
    $(function() {
       activeMenus('控制面板')
    });
</script>
</body>
</html>
